<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style>

	.layui-upload-colse {
		position: relative;
	}

	.closeUpload {
		position: absolute;
		top: 0;
		right: 0;
		width: 20px;
		height: 20px;
		cursor: pointer;
	}

	.upImg {
		width: 80px;
		height: 80px;
	}

	.formfixed {
		position: relative;
	}

	.remove {
		position: absolute;
		top: 125%;
		right: -175px;
		transform: translateY(-50%);
		cursor: pointer;
	}

	.myheader {
		height: 140px;
		background-color: #FFFFFF;
		padding: 20px 0;
		display: flex;
		align-items: center;
		margin: 0;
		flex-wrap: wrap;
	}

	.layui-tab {

		overflow: auto;
		background-color: #FFFFFF;
		margin: 10px 0 0 0;
	}

	.layui-input-block1 {
		display: flex;
		align-items: center;
		justify-content: flex-start
	}
	.layui-tab-title{
		height: 40px!important;
	}
	.layui-tab-content{
		height: calc(100% - 40px);
		overflow: auto;
	}
</style>
<body>
<input id="userId" th:value="${userId}" style="display: none">
<input id="isSubmit" th:value="${null!=myData && myData?.auditStatus!=0}" style="display: none">
<div class="layui-fluid mt2" style="background-color: #f0f2f5">
	<form class="layui-form" style="height: 100%;">
		<div class="layui-form-item " >
			<div class="layui-inline" style="width: calc((100% - 40px) / 3);">
				<label class="layui-form-label">发布人</label>
				<div class="layui-input-block layui-input-block1" th:text="${type=='add'?name:(myData?.userName)}">
				</div>
			</div>
			<div class="layui-inline" style="width: calc((100% - 40px) / 3);">
				<label class="layui-form-label" >发布时间</label>
				<div class="layui-input-block layui-input-block1" th:text="${myData?.createTime} eq null ? '' : ${#dates.format(myData?.createTime, 'yyyy-MM-dd HH:mm:ss')}">
				</div>
			</div>
			<div class="layui-inline" style="width: calc((100% - 40px) / 3);">
				<label class="layui-form-label">审核状态</label>
				<div class="layui-input-block layui-input-block1" th:text="${myData?.auditStatus==0?'待审核':'已审核'}">
				</div>
			</div>
		</div>
		<div class="layui-form-item " >
			<div class="layui-inline" style="width: calc((100% - 40px) / 3);">
				<label class="layui-form-label">工作类型</label>
				<div class="layui-input-block layui-input-block1" th:text="${myData?.projectName}">
				</div>
			</div>
			<div class="layui-inline" style="width: calc((100% - 40px) / 3);">
				<label class="layui-form-label">性别</label>
				<div class="layui-input-block layui-input-block1" th:text="${myData?.sex=='1'?'男':(myData?.sex=='2'?'女':'未知')}">
				</div>
			</div>
			<div class="layui-inline" style="width: calc((100% - 40px) / 3);">
				<label class="layui-form-label">是否驻家</label>
				<div class="layui-input-block layui-input-block1" th:text="${myData?.residentHome=='0'?'是':'否'}">

				</div>
			</div>
		</div>

		<div class="layui-form-item " >
			<div class="layui-inline" style="width: calc((100% - 40px) / 3);">
				<label class="layui-form-label">薪资待遇</label>
				<div class="layui-input-block layui-input-block1" th:text="${myData?.salary}">
				</div>
			</div>
			<div class="layui-inline" style="width: calc((100% - 40px) / 3);">
				<label class="layui-form-label">工作日期</label>
				<div class="layui-input-block layui-input-block1"
					 th:text="${myData?.workDate} eq null ? (' 至 '+
                     (${myData?.endDate} eq null ?'':${#dates.format(myData?.endDate, 'yyyy-MM-dd HH:mm:ss')})) :

                     (${#dates.format(myData?.workDate, 'yyyy-MM-dd HH:mm:ss')}) +' 至 ' +
                     (${myData?.endDate} eq null ?'':${#dates.format(myData?.endDate, 'yyyy-MM-dd HH:mm:ss')})">
				</div>
			</div>
			<div class="layui-inline" style="width: calc((100% - 40px) / 3);">
				<label class="layui-form-label">工作地址</label>
				<div class="layui-input-block layui-input-block1" th:text="${myData?.address}">

				</div>
			</div>
		</div>
		<!--        <div class="layui-form-item " >-->
		<!--            <label class="layui-form-label">优先级</label>-->
		<!--            <div class="layui-input-block layui-input-block1" th:text="${myData?.level}">-->
		<!--            </div>-->
		<!--        </div>-->
		<div class="layui-form-item " >
			<label class="layui-form-label">备注</label>
			<div class="layui-input-block layui-input-block1" th:text="${myData?.remark}">
			</div>
		</div>


		<div class="layui-form-item  layui-flow-more">
			<div class="layui-inline">
				<button type="button" class="layui-btn" lay-submit lay-filter="submit"   th:text="${(null!=myData && myData?.auditResult!=2)?'确认':'立即提交'}"></button>
			</div>
		</div>

	</form>
</div>

<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/xmSelect.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/jazUserDemand/add.js"></script>
</body>
</html>